#!/usr/bin/env python3
import re

pt = re.compile('[\w.]+@\w+\.[a-zA-Z]+')
mail_arr = []

f = open('youxiang.txt')
for i in f:
    mails = pt.findall(i)
    if mails:
        mail_arr.extend(mails)

print(mail_arr)
f.close()
